import { IsString, IsNotEmpty, IsOptional, IsArray } from 'class-validator';

export class SaveTextRecordDto {
  @IsString()
  @IsNotEmpty()
  originalText: string;

  @IsArray()
  @IsString({ each: true })
  segmentedWords: string[];

  @IsString()
  @IsOptional()
  replacedText?: string;

  @IsOptional()
  replacements?: Record<string, string>;
}